// lib/src/ui/weekday_row.dart

import 'package:flutter/material.dart';
import 'package:omni_calendar_view/src/utils/localization_util.dart';

class WeekdayRow extends StatelessWidget {
  final Locale locale;
  const WeekdayRow({super.key, required this.locale});

  @override
  Widget build(BuildContext context) {
    final localizations = OmniLocalizations(locale);
    return Padding(
      padding: const EdgeInsets.symmetric(vertical: 8.0),
      child: Row(
        children: localizations.weekdays.map((day) {
          return Expanded(
            child: Center(
              child: Text(
                day,
                style: TextStyle(
                  fontSize: 13,
                  color: Colors.grey.shade600,
                  fontWeight: FontWeight.w500,
                ),
              ),
            ),
          );
        }).toList(),
      ),
    );
  }
}
